<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TSerialWidget类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_serial_widget-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TSerialWidget类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TSerialWidget 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_serial_widget.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa838ed548a7c0fd17540a4aa2008bfea"><td class="memItemLeft" align="right" valign="top"><a id="aa838ed548a7c0fd17540a4aa2008bfea"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TSerialWidget</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:aa838ed548a7c0fd17540a4aa2008bfea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18f15606274caf89b5f55d7e3ed543d1"><td class="memItemLeft" align="right" valign="top"><a id="a18f15606274caf89b5f55d7e3ed543d1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TSerialWidget</b> (const serial_widget_t *nativeObj)</td></tr>
<tr class="separator:a18f15606274caf89b5f55d7e3ed543d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbbaf3b6f48291589a1ba14130b089b3"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#acbbaf3b6f48291589a1ba14130b089b3">SetBaudrate</a> (uint32_t baudrate)</td></tr>
<tr class="separator:acbbaf3b6f48291589a1ba14130b089b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82965d821fd50e4f1122eb936f0d72d9"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#a82965d821fd50e4f1122eb936f0d72d9">SetDevice</a> (const char *device)</td></tr>
<tr class="separator:a82965d821fd50e4f1122eb936f0d72d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9f1e76ccaf221728046f74586fe58be"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#af9f1e76ccaf221728046f74586fe58be">SetBytesize</a> (uint32_t bytesize)</td></tr>
<tr class="separator:af9f1e76ccaf221728046f74586fe58be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25ace21c2733486588e6ffb9951e5572"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#a25ace21c2733486588e6ffb9951e5572">SetParity</a> (uint32_t parity)</td></tr>
<tr class="separator:a25ace21c2733486588e6ffb9951e5572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b8c3b51da939c2d7c746db00c878d53"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#a5b8c3b51da939c2d7c746db00c878d53">SetStopbits</a> (uint32_t stopbits)</td></tr>
<tr class="separator:a5b8c3b51da939c2d7c746db00c878d53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf3e5399338fdc2e769bbb69cd7e13f4"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#aaf3e5399338fdc2e769bbb69cd7e13f4">SetFlowcontrol</a> (uint32_t flowcontrol)</td></tr>
<tr class="separator:aaf3e5399338fdc2e769bbb69cd7e13f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81d0537260e84c5993d14a5bf8b42d15"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#a81d0537260e84c5993d14a5bf8b42d15">SetCheckInterval</a> (uint32_t check_interval)</td></tr>
<tr class="separator:a81d0537260e84c5993d14a5bf8b42d15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c26fbf132e6d892fd590b5353ef83dd"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#a6c26fbf132e6d892fd590b5353ef83dd">GetDevice</a> () const</td></tr>
<tr class="separator:a6c26fbf132e6d892fd590b5353ef83dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab22f6558cd2637e019c125bdc32b5789"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#ab22f6558cd2637e019c125bdc32b5789">GetBaudrate</a> () const</td></tr>
<tr class="separator:ab22f6558cd2637e019c125bdc32b5789"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01a0f264ccbee4220ff8552c8de26629"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#a01a0f264ccbee4220ff8552c8de26629">GetBytesize</a> () const</td></tr>
<tr class="separator:a01a0f264ccbee4220ff8552c8de26629"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4df01088a38907a160bb1c0bb0ab2a6"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#ad4df01088a38907a160bb1c0bb0ab2a6">GetParity</a> () const</td></tr>
<tr class="separator:ad4df01088a38907a160bb1c0bb0ab2a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41050711c1551ad640e0540b70614b93"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#a41050711c1551ad640e0540b70614b93">GetStopbits</a> () const</td></tr>
<tr class="separator:a41050711c1551ad640e0540b70614b93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4f7759fea8e9b8197eac5700ead3dae"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#af4f7759fea8e9b8197eac5700ead3dae">GetFlowcontrol</a> () const</td></tr>
<tr class="separator:af4f7759fea8e9b8197eac5700ead3dae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b20095dadf7d9bd1daafa0ae9ffd8b5"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#a7b20095dadf7d9bd1daafa0ae9ffd8b5">GetCheckInterval</a> () const</td></tr>
<tr class="separator:a7b20095dadf7d9bd1daafa0ae9ffd8b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:affb6f55d289cee30ab89d8a085632582"><td class="memItemLeft" align="right" valign="top"><a id="affb6f55d289cee30ab89d8a085632582"></a>
static <a class="el" href="class_t_serial_widget.html">TSerialWidget</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:affb6f55d289cee30ab89d8a085632582"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33bebb7379378d903bc3abb567513928"><td class="memItemLeft" align="right" valign="top"><a id="a33bebb7379378d903bc3abb567513928"></a>
static <a class="el" href="class_t_serial_widget.html">TSerialWidget</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a33bebb7379378d903bc3abb567513928"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab64808a3de67e4a38b4312d170fccf6e"><td class="memItemLeft" align="right" valign="top"><a id="ab64808a3de67e4a38b4312d170fccf6e"></a>
static <a class="el" href="class_t_serial_widget.html">TSerialWidget</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:ab64808a3de67e4a38b4312d170fccf6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab99bdf00652594e3ce6b95879481676d"><td class="memItemLeft" align="right" valign="top"><a id="ab99bdf00652594e3ce6b95879481676d"></a>
static <a class="el" href="class_t_serial_widget.html">TSerialWidget</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:ab99bdf00652594e3ce6b95879481676d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa19f97b38e787d5121769f8d43af9469"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_serial_widget.html#aa19f97b38e787d5121769f8d43af9469">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:aa19f97b38e787d5121769f8d43af9469"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>用于串口通信的控件 在xml中使用"serial"标签创建控件。如：</p>
<div class="fragment"><div class="line">*<span class="comment">&lt;!-- ui --&gt;</span></div>
<div class="line">*&lt;<span class="keywordtype">serial</span> <span class="keyword">device</span>=<span class="stringliteral">&quot;COM1&quot;</span> <span class="keyword">baudrate</span>=<span class="stringliteral">&quot;115200&quot;</span>/&gt;</div>
</div><!-- fragment --><p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如： </p><blockquote class="doxtable">
<p>本控件默认不可见，无需指定style。 </p>
</blockquote>
<div class="fragment"><div class="line">*<span class="comment">&lt;!-- style --&gt;</span></div>
<div class="line">*&lt;<span class="keywordtype">serial</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">font_size</span>=<span class="stringliteral">&quot;32&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">serial</span>&gt;</div>
</div><!-- fragment --> </div><h2 class="groupheader">成员函数说明</h2>
<a id="aa19f97b38e787d5121769f8d43af9469"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa19f97b38e787d5121769f8d43af9469">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TSerialWidget::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建serial_widget对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>serial_widget对象。 </dd></dl>

</div>
</div>
<a id="ab22f6558cd2637e019c125bdc32b5789"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab22f6558cd2637e019c125bdc32b5789">&#9670;&nbsp;</a></span>GetBaudrate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSerialWidget::GetBaudrate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>波特率。 </p>

</div>
</div>
<a id="a01a0f264ccbee4220ff8552c8de26629"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01a0f264ccbee4220ff8552c8de26629">&#9670;&nbsp;</a></span>GetBytesize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSerialWidget::GetBytesize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>字节位数。 </p>

</div>
</div>
<a id="a7b20095dadf7d9bd1daafa0ae9ffd8b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b20095dadf7d9bd1daafa0ae9ffd8b5">&#9670;&nbsp;</a></span>GetCheckInterval()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSerialWidget::GetCheckInterval </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>轮询时间（单位：ms）。 </p><blockquote class="doxtable">
<p>仅在不支持用select等待串口数据的嵌入式设备上有效。 </p>
</blockquote>

</div>
</div>
<a id="a6c26fbf132e6d892fd590b5353ef83dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c26fbf132e6d892fd590b5353ef83dd">&#9670;&nbsp;</a></span>GetDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TSerialWidget::GetDevice </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设备(文件)名。 </p>

</div>
</div>
<a id="af4f7759fea8e9b8197eac5700ead3dae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4f7759fea8e9b8197eac5700ead3dae">&#9670;&nbsp;</a></span>GetFlowcontrol()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSerialWidget::GetFlowcontrol </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>流控。 </p>

</div>
</div>
<a id="ad4df01088a38907a160bb1c0bb0ab2a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4df01088a38907a160bb1c0bb0ab2a6">&#9670;&nbsp;</a></span>GetParity()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSerialWidget::GetParity </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>奇偶校验。 </p>

</div>
</div>
<a id="a41050711c1551ad640e0540b70614b93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41050711c1551ad640e0540b70614b93">&#9670;&nbsp;</a></span>GetStopbits()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSerialWidget::GetStopbits </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>停止位。 </p>

</div>
</div>
<a id="acbbaf3b6f48291589a1ba14130b089b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbbaf3b6f48291589a1ba14130b089b3">&#9670;&nbsp;</a></span>SetBaudrate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSerialWidget::SetBaudrate </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>baudrate</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 波特率。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">baudrate</td><td>波特率。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af9f1e76ccaf221728046f74586fe58be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9f1e76ccaf221728046f74586fe58be">&#9670;&nbsp;</a></span>SetBytesize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSerialWidget::SetBytesize </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>bytesize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 字节位数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bytesize</td><td>字节位数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a81d0537260e84c5993d14a5bf8b42d15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81d0537260e84c5993d14a5bf8b42d15">&#9670;&nbsp;</a></span>SetCheckInterval()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSerialWidget::SetCheckInterval </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>check_interval</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 轮询时间。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">check_interval</td><td>轮询时间（单位：ms）。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a82965d821fd50e4f1122eb936f0d72d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82965d821fd50e4f1122eb936f0d72d9">&#9670;&nbsp;</a></span>SetDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSerialWidget::SetDevice </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 设备。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">device</td><td>设备。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aaf3e5399338fdc2e769bbb69cd7e13f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf3e5399338fdc2e769bbb69cd7e13f4">&#9670;&nbsp;</a></span>SetFlowcontrol()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSerialWidget::SetFlowcontrol </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>flowcontrol</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 流控。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">flowcontrol</td><td>流控。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a25ace21c2733486588e6ffb9951e5572"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25ace21c2733486588e6ffb9951e5572">&#9670;&nbsp;</a></span>SetParity()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSerialWidget::SetParity </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>parity</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 奇偶校验。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parity</td><td>奇偶校验。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5b8c3b51da939c2d7c746db00c878d53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b8c3b51da939c2d7c746db00c878d53">&#9670;&nbsp;</a></span>SetStopbits()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSerialWidget::SetStopbits </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>stopbits</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 停止位。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">stopbits</td><td>停止位。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
